package org.dtrd.modules.flup.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.flup.entity.po.DtrdEntRdFlupTemplateProject;

/**
 * <p>
 * 复诊模版项目
 * </p>
 *
 * @author QR
 * @since 2021-12-21
 */
@Getter
@Setter
@ApiModel(value = "复诊模版项目详情")
public class FlupTemplateProjectDetail {

    private Integer dataId;

    @ApiModelProperty("机构编码")
    private String orgCode;

    @ApiModelProperty("复诊模版内容名称")
    private String templateProjectName;

    @ApiModelProperty("复诊模版内容描述")
    private String templateProjectDesc;

    @ApiModelProperty("内容是否固定, 即不可修改, 1-是, 0否")
    private Integer isFixed;

    @ApiModelProperty("顺序")
    private Integer orderNum = 0;




    public FlupTemplateProjectDetail parseFromPo(DtrdEntRdFlupTemplateProject po) {
        dataId = po.getDataId();
        orgCode = po.getOrgCode();
        templateProjectName = po.getTemplateProjectName();
        templateProjectDesc = po.getTemplateProjectDesc();
        isFixed = po.getIsFixed();
        orderNum = po.getOrderNum();
        return this;
    }
}
